package com.cnhis.cloudhealth.clinical.clidoctor.clibackadvice.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
@SuppressWarnings("rawtypes")
@Repository
public class CliBackAdviceDao extends BaseDao {
  
	public int getBlp02(Map map) throws Exception {
		return (int) queryForExtObject("CliNewAdvice.getBlp02", map);
	}

	public Integer getBlp04(Map map) throws Exception {
		return (Integer) queryForExtObject("CliNewAdvice.getBlp04", map);
	}

	public Integer getVaa10(Map map) throws Exception {
		return (Integer) queryForExtObject("CliNewAdvice.getVaa10", map);
	}

	public int getVcj04Vcj05(Map map) throws Exception {
		return  (Integer) queryForExtObject("CliNewAdvice.getVcj04Vcj05", map);
	}
	
	public List  judgeBackAdvice(Map map) throws Exception{
		return this.queryForList("CliBackAdvice.judgeBackAdvice", map);
	}
	
	
	public Integer findBackAdviceParam(Map map)throws Exception{
		return (Integer) this.queryForExtObject("CliBackAdvice.findBackAdviceParam", map);
	}
	public String getApara269()throws Exception{
		return (String) this.queryForExtObject("CliBackAdvice.getApara269", null);
	}
	public Integer getVBI05(Map map)throws Exception{
		return (Integer) queryForExtObject("CliBackAdvice.getVBI05", map);
	}
	public Integer checkMedicare(Map map)throws Exception{
		return (Integer) queryForExtObject("CliBackAdvice.checkMedicare", map);
	}
	public Integer checkSettleAccounts(Map map)throws Exception{
		return (Integer) queryForExtObject("CliBackAdvice.checkSettleAccounts", map);
	}
	public Integer checkSettleAccounts1(Map map)throws Exception{
		return (Integer) queryForExtObject("CliBackAdvice.checkSettleAccounts1", map);
	}
	public Integer BLP137()throws Exception{
		return (Integer) queryForExtObject("CliBackAdvice.BLP137", null);
	}
	
	public String VAF22(Map map)throws Exception{
		return (String) queryForExtObject("CliBackAdvice.VAF22", map);
	}
	
	public Integer checkReturnDetail(Map map)throws Exception{
		return (Integer) queryForExtObject("CliBackAdvice.checkReturnDetail", map);
	}
	
	public void updateAndDelete_VAI1_VAJ1_VAF1_VBI1_VBD1(Map map)throws Exception{
		update("CliBackAdvice.updateAndDelete", map);
	}
	public void insertAndDelete(Map map)throws Exception{
		update("CliBackAdvice.insertAndDelete", map);
	}
	public Integer updateStockParam(Map map)throws Exception{
		return (Integer) queryForExtObject("CliBackAdvice.updateStockParam", map);
	}
	public List DPS_DPT1_Update_Param(Map map)throws Exception{
		return queryForList("CliBackAdvice.DPSDPT1UpdateParam", map);
	}
	
	public List select_tmp_DPT1_param1(Map map)throws Exception{
		return queryForList("CliBackAdvice.update_tmp_DPT1_param1", map);
	}
    public List select_tmp_DPT1_param2(Map map)throws Exception{
    	return queryForList("CliBackAdvice.update_tmp_DPT1_param2", map);
	}
    public Map getMaxAndMin(Map map)throws Exception{
    	return (Map) queryForExtObject("CliBackAdvice.getMaxAndMin", map);
    }
	public Map getRefQtyAndSellQty(Map map)throws Exception{
		return (Map) queryForExtObject("CliBackAdvice.getRefQtyAndSellQty", map);
	}
	public Map getRefQtyAndSellQty1(Map map)throws Exception{
		return (Map) queryForExtObject("CliBackAdvice.getRefQtyAndSellQty1", map);
	}
	 public List select_tmp_DPT1_param3(Map map)throws Exception{
	    	return queryForList("CliBackAdvice.update_tmp_DPT1_param3", map);
		} 
	 public List select_tmp_DPT1_param4(Map map)throws Exception{
	    	return queryForList("CliBackAdvice.update_tmp_DPT1_param4", map);
		}
	 public List select_tmp_DPT1_param5(Map map)throws Exception{
	    	return queryForList("CliBackAdvice.update_tmp_DPT1_param5", map);
		} 
	 public List select_tmp_DPT1_param6(Map map)throws Exception{
	    	return queryForList("CliBackAdvice.update_tmp_DPT1_param6", map);
		}
	 public List select_tmp_DPT1_param7(Map map)throws Exception{
	    	return queryForList("CliBackAdvice.update_tmp_DPT1_param7", map);
		} 
	 public List select_tmp_DPT1_param8(Map map)throws Exception{
	    	return queryForList("CliBackAdvice.update_tmp_DPT1_param8", map);
		}
    public void updateStock(Map map)throws Exception{
		update("CliBackAdvice.updateStock", map);
	}
}
